{config_load file="_TrackForecasts.conf" section="`$lang`"}

<table  border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
    <tr>
        <td width="70"><b>{#_TrackForecasts__labelPair#}{*Pair*}</b></td>
        <td width="50"><b>{#_TrackForecasts__labelAction#}{*Action*}</b></td>
        <td width="80"><b>{#_TrackForecasts__labelTime#}{*Time*}</b></td>
        <td width="60"><b>{#_TrackForecasts__labelEntry#}{*Entry*}</b></td>
        <td width="60"><b>{#_TrackForecasts__labelStop#}{*Stop*}</b></td>
        <td width="60"><b>{#_TrackForecasts__labelTarget#}{*Target*}</b></td>
        <td width="80"><b>{#_TrackForecasts__labelClosePrice#}{*Close*}</b></td>  
        <td width="80"><b>{#_TrackForecasts__labelCloseTime#}{*Close*}</b></td>        
        <td width="40"><b>{#_TrackForecasts__labelProfit#}{*Profit*}</b></td>
    </tr>


{foreach key="ForecastIndex" name="forecasts" item="itemForecast" from=$ForecastArr}
<tr>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>

        {$itemForecast.Pair}

    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>

        &nbsp;{if 0==$itemForecast.Side}{#_TrackForecasts__labelBuy#}{*BUY*}{else}{#_TrackForecasts__labelSell#}{*SELL*}{/if}

    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>

        &nbsp;{$itemForecast.OpenTimeF}

    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>

        &nbsp;{$itemForecast.BeginPrice}

    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>

        &nbsp;{$itemForecast.StopPrice}

    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>

        &nbsp;{$itemForecast.EndPrice}

    </td>
    
    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>

        &nbsp;{$itemForecast.ClosePrice}

    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if}>        
        {$itemForecast.CloseTimeF}        
    </td>

    <td	{if $smarty.foreach.forecasts.iteration%2==1} class="darkRow" {/if} align="right">
        <font {if !$itemForecast.FlagActive} {if $itemForecast.Profit>0} color="#708F32" {else} color="red" {/if}{else}color="{*blackorange*}"{/if}>
        {$itemForecast.Profit}
        </font>
    </td>

</tr>
{/foreach}

<table>
